<template>
	<view class="main">
		<header-vue :back="true" title="房屋详情"></header-vue>
		<view style="margin-top: 28rpx;">
			<view v-for="item in 10" :key="item" class="flex center start white-box margin32" @click="goPage('/views/mine/houseDetail')">
				<image :src="IMAGE_URL + '/static/login/bg.png'" class="avatar"></image>
				<view class="font28">
					<view class="flex center">张三<text>156****0621</text></view>
					<view class="flex center tag">业主</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import headerVue from '../../components/header.vue';
	import hdqVue from './publicCom/hdq.vue';
	import jnpxVue from './publicCom/jnpx.vue';
	import appConfig from '@/config/app.js'	
	export default {
		components: {
			headerVue,
			hdqVue,
			jnpxVue
		},
		data() {
			return {
				IMAGE_URL: appConfig.IMAGE_URL,
			}
		},
		methods: {
			goPage(url) {
				uni.navigateTo({
					url
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	.main {
		background: #F6F6F6;
	}

	.margin32 {
		margin: 0 32rpx;
	}
	
	.white-box {
		width: 686rpx;
		height: 134rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0,0,0,0.1);
		border-radius: 20rpx;
		margin-bottom: 28rpx;
		padding: 28rpx;
		box-sizing: border-box;
		
		.avatar {
			margin-right: 24rpx;
			width: 72rpx;
			height: 72rpx;
			border-radius: 50%;
		}
		
		.tag {
			padding: 0 16rpx;
			height: 32rpx;
			background: #D5F0FF;
			border-radius: 6rpx;
			font-weight: 400;
			font-size: 20rpx;
			color: #0785CF;
			width: fit-content;
			margin-top: 12rpx;
		}
		
		text {
			color: $uni-text-color-grey1;
			margin-left: 20rpx;
		}
	}
</style>